home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HDA Tech Note #1.cpt / HDA Tech Note #1 / card_10520.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  32 lines

  1. -- card: 10520 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2619
  5. -- name: CALCULATED NAVIGATION
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 0001
  11. -- rect: left=37 top=42 right=91 bottom=475
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 8448
  18. -- line height: 16
  19. -- part name: 
  20.  
  21.  
  22. -- part contents for card part 1
  23. ----- text -----
  24. Commands and Structures to Avoid
  25.  
  26. CALCULATED NAVIGATION
  27.  
  28.  
  29. -- part contents for background part 2
  30. ----- text -----
  31.  
  32. Because HyperDA does not support mathematical operations or date arithmetic, you should avoid designing handlers that depend on such calculations to determine where to go in response to a user‚Äôs navigation command.  For example, if you were designing an appointment-tracking stack, you might have a button that moves the user forward in the stack by seven cards when he indicates he wants to advance one week from the currently visible card.  Rather than using date arithmetic to calculate the date of the destination card (which would work fine in HyperCard), you might try  seven go to next card  statements.  (Notice that it is not legal to use the repeat approach that might first come to mind because HyperDA does not support this command.)